<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/15
 * Time: 17:39
 */
$arr = array(
    'username'=>'frank',
    'age'=>19,
    'gener'=>true

);

foreach ($arr as $vv){
    var_dump($vv);
}
var_dump("********************");
$i = 1;
foreach ($arr as $k=>$v){
    var_dump($i);
    var_dump($k);
    var_dump($v);
    $i++;
}

